package com.eqxiu.ieditor.interceptor;

/**
 * @Author LinSH
 * @Date: 上午11:37 2018-03-30
 */
public class Tuple {
    public static <A, B> Tuple2<A, B> of(A _1, B _2) {
        return new Tuple2<>(_1, _2);
    }

    public static <A, B, C> Tuple3<A, B, C> of(A _1, B _2, C _3) {
        return new Tuple3<>(_1, _2, _3);
    }

    public static class Tuple2<A, B> {
        public final A _1;
        public final B _2;

        public Tuple2(A _1, B _2) {
            this._1 = _1;
            this._2 = _2;
        }
    }

    public static class Tuple3<A, B, C> {
        public final A _1;
        public final B _2;
        public final C _3;

        public Tuple3(A _1, B _2, C _3) {
            this._1 = _1;
            this._2 = _2;
            this._3 = _3;
        }
    }
}
